package com.itheima.demo;

import java.io.File;
import java.io.IOException;

public class FileDemo {//在当前模板下创建aaa文件夹，并在该目录下创建a.txt
    public static void main(String[] args) throws IOException {
        File file = new File("day012\\aaa");
        if (!file.exists()) {
            file.mkdirs();
        }
        File newFile =new File(file,"a.txt");
        newFile.createNewFile();
    }
}
